-- GENERATED SPELL FOR [Shattered Hand Sentry] --


function spell0_16507(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(22911,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16507', 2274, 1)
end

function spell1_16507(pUnit, Event) --@Charge,n/a--
pUnit:FullCastSpellOnTarget(37511,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16507', 2320, 1)
end

function spell2_16507(pUnit, Event) --@Hamstring,n/a--
pUnit:FullCastSpellOnTarget(31553,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16507', 10270, 1)
end

function Sorts_16507(pUnit, Event)
local choix_sorts_16507 = math.random(0, 2)
if choix_sorts_16507 == 0 then
pUnit:RegisterEvent('spell0_16507', 1, 1)
end
if choix_sorts_16507 == 1 then
pUnit:RegisterEvent('spell1_16507', 1, 1)
end
if choix_sorts_16507 == 2 then
pUnit:RegisterEvent('spell2_16507', 1, 1)
end
end

function mob16507_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16507', math.random(1500, 3000), 1)
end

function mob16507_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16507_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16507_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16507, 1, 'mob16507_Action')
RegisterUnitEvent(16507, 2, 'mob16507_Leave')
RegisterUnitEvent(16507, 3, 'mob16507_Kill')
RegisterUnitEvent(16507, 4, 'mob16507_Die')
